package com.lianrui.app.order.services.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lianrui.app.order.dao.IOrderItemDao;
import com.lianrui.app.order.domain.OrderItem;
import com.lianrui.app.order.services.IOrderItemService;
import com.lianrui.app.order.vos.OrderItemPage;
import com.lianrui.commons.exception.BusinessException;
import com.lianrui.core.AbstractService;
import com.lianrui.core.IDao;

/**
 * 功能描述：订单项服务实现类
 * 
 * @author LJQ
 * 
 * <br>2016年1月11日 下午4:26:06
 */
@Service("orderItemService")
public class OrderItemService extends AbstractService<OrderItemPage, OrderItem, Integer> implements IOrderItemService {
	
	private static final long serialVersionUID = 1L;
	
	private static final Logger LOGGER = LoggerFactory.getLogger(OrderItemService.class);
	
	@Autowired
	IOrderItemDao orderItemDao;
	
	@Override
	public IDao<OrderItemPage, OrderItem, Integer> getDao() throws BusinessException {
		return orderItemDao;
	}

	@Override
	protected Logger getLogger() {
		return LOGGER;
	}

}
